package com.etone.uds.webservice.bean;

import lombok.Data;

import java.io.Serializable;

@Data
public class QueryEmployeeDTO implements Serializable {
    /**
     * root : {"data":{"APPLICATION":{"APPID":"xxxxxxxxxxxxxxx","WEBSERVICEPWD":" xxxxxxxxxxxxxxx "},"EOSORG_T_Employee":{"orgID":"6043","employee":"1421395963","userID":"liyaojie","fullsyncNO":{"-criteria":"between","#text":"1:10000"}}}}
     */

    private RootBean root;

    @Data
    public static class RootBean implements Serializable {
        /**
         * data : {"APPLICATION":{"APPID":"xxxxxxxxxxxxxxx","WEBSERVICEPWD":" xxxxxxxxxxxxxxx "},"EOSORG_T_Employee":{"orgID":"6043","employee":"1421395963","userID":"liyaojie","fullsyncNO":{"-criteria":"between","#text":"1:10000"}}}
         */

        private DataBean data;

        @Data
        public static class DataBean implements Serializable {
            /**
             * APPLICATION : {"APPID":"xxxxxxxxxxxxxxx","WEBSERVICEPWD":" xxxxxxxxxxxxxxx "}
             * EOSORG_T_Employee : {"orgID":"6043","employee":"1421395963","userID":"liyaojie","fullsyncNO":{"-criteria":"between","#text":"1:10000"}}
             */

            private ApplicationBean application;
            private EOSORGTEmployeeBean EOSORG_T_Employee;

            @Data
            public static class ApplicationBean implements Serializable {
                /**
                 * APPID : xxxxxxxxxxxxxxx
                 * WEBSERVICEPWD :  xxxxxxxxxxxxxxx
                 */

                private String appid;
                private String webservicepwd;
            }

            @Data
            public static class EOSORGTEmployeeBean implements Serializable {
                /**
                 * orgID : 6043
                 * employee : 1421395963
                 * userID : liyaojie
                 * fullsyncNO : {"-criteria":"between","#text":"1:10000"}
                 */

                private String orgID;
                private String employee;
                private String userID;
                private FullsyncNOBean fullsyncNO;

                @Data
                public static class FullsyncNOBean implements Serializable {
                    /**
                     * -criteria : between
                     * #text : 1:10000
                     */

                    private String Criteria;
                    private String _$Text229; // FIXME check this code
                }
            }
        }
    }
    /**
     *           <root><data>
     * 			<APPLICATION>
         * 			<APPID>xxxxxxxxxxxxxxx</APPID>
         * 			<WEBSERVICEPWD> xxxxxxxxxxxxxxx </WEBSERVICEPWD>
     * 			</APPLICATION>
     * 			<EOSORG_T_Employee>
         * 			<orgID>6043</orgID>
         * 			<employee>1421395963</employee>
         * 			<userID>liyaojie</userID>
         * 			<fullsyncNO criteria="between">1:10000</fullsyncNO>
     * 			</EOSORG_T_Employee>
     * 			</data></root>
     */


}
